import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.promptAction.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkUI\n */\nimport { AsyncCallback } from './@ohos.base';\n/**\n * Define the display mode of all kind of dialog\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 15\n */\nexport enum LevelMode {\n    /**\n     * Display above all page levels.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    OVERLAY = 0,\n    /**\n     * Display within the current page.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    EMBEDDED = 1\n}\n/**\n * Define the immersive mode of all kind of dialog\n *\n * @enum { number }\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 15\n */\nexport enum ImmersiveMode {\n    /**\n     * Mask covering the parent node.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    DEFAULT = 0,\n    /**\n     * Mask extend safe area includes status bar and navigation bar.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 15\n     */\n    EXTEND = 1\n}\n/**\n * Defines level order.\n *\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 18\n */\nexport class LevelOrder {\n    /**\n     * Generate valid level order.\n     *\n     * @param { number } order - Clamp order with mininum number -100000 and maximum number 100000.\n     * @returns { LevelOrder } the order object.\n     * @static\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    static clamp(order: number): LevelOrder;\n    /**\n     * Get the order from LevelOrder object.\n     *\n     * @returns { number } the order number.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getOrder(): number;\n}\n/**\n * @namespace promptAction\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @since 9\n */\n/**\n * @namespace promptAction\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @since 10\n */\n/**\n * @namespace promptAction\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace promptAction {\n    /**\n     * @typedef ShowToastOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef ShowToastOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef ShowToastOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ShowToastOptions {\n        /**\n         * Text to display.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Text to display.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Text to display.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        message: string | Resource;\n        /**\n         * Duration of toast dialog box. The default value is 1500.\n         * The recommended value ranges from 1500ms to 10000ms.\n         * NOTE: A value less than 1500 is automatically changed to 1500. The maximum value is 10000ms.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Duration of toast dialog box. The default value is 1500.\n         * The recommended value ranges from 1500ms to 10000ms.\n         * NOTE: A value less than 1500 is automatically changed to 1500. The maximum value is 10000ms.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Duration of toast dialog box. The default value is 1500.\n         * The recommended value ranges from 1500ms to 10000ms.\n         * NOTE: A value less than 1500 is automatically changed to 1500. The maximum value is 10000ms.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        duration?: number;\n        /**\n         * The distance between toast dialog box and the bottom of screen.\n         *\n         * @type { ?(string | number) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * The distance between toast dialog box and the bottom of screen.\n         *\n         * @type { ?(string | number) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The distance between toast dialog box and the bottom of screen.\n         *\n         * @type { ?(string | number) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        bottom?: string | number;\n        /**\n         * Determine the show mode of the toast.\n         *\n         * @type { ?ToastShowMode }\n         * @default ToastShowMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 11\n         */\n        /**\n         * Determine the show mode of the toast.\n         *\n         * @type { ?ToastShowMode }\n         * @default ToastShowMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        showMode?: ToastShowMode;\n        /**\n         * Defines the toast alignment of the screen.\n         *\n         * @type { ?Alignment }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        alignment?: Alignment;\n        /**\n         * Defines the toast offset.\n         *\n         * @type { ?Offset }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        offset?: Offset;\n        /**\n         * Background color of toast.\n         *\n         * @type { ?ResourceColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundColor?: ResourceColor;\n        /**\n         * Text color of toast.\n         *\n         * @type { ?ResourceColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        textColor?: ResourceColor;\n        /**\n         * Background blur Style of toast.\n         *\n         * @type { ?BlurStyle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundBlurStyle?: BlurStyle;\n        /**\n         * Shadow of toast.\n         *\n         * @type { ?(ShadowOptions | ShadowStyle) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        shadow?: ShadowOptions | ShadowStyle;\n        /**\n         * Define whether to respond to the hover mode.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        enableHoverMode?: boolean;\n        /**\n         * Defines the toast's display area in hover mode.\n         *\n         * @type { ?HoverModeAreaType }\n         * @default HoverModeAreaType.BOTTOM_SCREEN\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        hoverModeArea?: HoverModeAreaType;\n    }\n    /**\n     * Enum for the toast showMode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 11\n     */\n    /**\n     * Enum for the toast showMode.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    export enum ToastShowMode {\n        /**\n         * Toast shows in app.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 11\n         */\n        /**\n         * Toast shows in app.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        DEFAULT = 0,\n        /**\n         * Toast shows at the top.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 11\n          */\n        /**\n         * Toast shows at the top.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TOP_MOST = 1\n    }\n    /**\n     * @typedef Button\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef Button\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef Button\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface Button {\n        /**\n         * The text displayed in the button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * The text displayed in the button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The text displayed in the button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        text: string | Resource;\n        /**\n         * The foreground color of button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * The foreground color of button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The foreground color of button.\n         *\n         * @type { string | Resource }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        color: string | Resource;\n        /**\n         * Define whether the button responds to Enter/Space key by default.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        primary?: boolean;\n    }\n    /**\n     * @typedef ShowDialogSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef ShowDialogSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef ShowDialogSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ShowDialogSuccessResponse {\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        index: number;\n    }\n    /**\n     * @typedef ShowDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef ShowDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef ShowDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ShowDialogOptions {\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        title?: string | Resource;\n        /**\n         * Text body.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Text body.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Text body.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        message?: string | Resource;\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * One to three buttons are supported.\n         * The first button is of the positiveButton type, the second is of the negativeButton type, and the third is of the neutralButton type.\n         *\n         * @type { ?Array<Button> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * More than one buttons are supported.\n         *\n         * @type { ?Array<Button> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * More than one buttons are supported.\n         *\n         * @type { ?Array<Button> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        buttons?: Array<Button>;\n        /**\n         * Mask Region of dialog. The size can't exceed the main window.\n         *\n         * @type { ?Rectangle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Mask Region of dialog. The size can't exceed the main window.\n         *\n         * @type { ?Rectangle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        maskRect?: Rectangle;\n        /**\n         * Defines the dialog alignment of the screen.\n         *\n         * @type { ?DialogAlignment }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Defines the dialog alignment of the screen.\n         *\n         * @type { ?DialogAlignment }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        alignment?: DialogAlignment;\n        /**\n         * Defines the dialog offset.\n         *\n         * @type { ?Offset }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Defines the dialog offset.\n         *\n         * @type { ?Offset }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        offset?: Offset;\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        showInSubWindow?: boolean;\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isModal?: boolean;\n        /**\n         * Defines the dialog's background color.\n         *\n         * @type { ?ResourceColor }\n         * @default Color.Transparent\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundColor?: ResourceColor;\n        /**\n         * Defines the dialog's background blur Style\n         *\n         * @type { ?BlurStyle }\n         * @default BlurStyle.COMPONENT_ULTRA_THICK\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundBlurStyle?: BlurStyle;\n        /**\n         * Defines the dialog's background blur style with options\n         *\n         * @type { ?BackgroundBlurStyleOptions }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;\n        /**\n         * Defines the dialog's background effect with options\n         *\n         * @type { ?BackgroundEffectOptions }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        backgroundEffect?: BackgroundEffectOptions;\n        /**\n         * Defines the dialog's shadow.\n         *\n         * @type { ?(ShadowOptions | ShadowStyle) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        shadow?: ShadowOptions | ShadowStyle;\n        /**\n         * Defines whether to respond to the hover mode.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        enableHoverMode?: boolean;\n        /**\n         * Defines the dialog's display area in hover mode.\n         *\n         * @type { ?HoverModeAreaType }\n         * @default HoverModeAreaType.BOTTOM_SCREEN\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        hoverModeArea?: HoverModeAreaType;\n        /**\n         * Callback function when the dialog appears.\n         *\n         * @type { ?Callback<void> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onDidAppear?: Callback<void>;\n        /**\n         * Callback function when the dialog disappears.\n         *\n         * @type { ?Callback<void> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onDidDisappear?: Callback<void>;\n        /**\n         * Callback function before the dialog openAnimation starts.\n         *\n         * @type { ?Callback<void> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onWillAppear?: Callback<void>;\n        /**\n         * Callback function before the dialog closeAnimation starts.\n         *\n         * @type { ?Callback<void> }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        onWillDisappear?: Callback<void>;\n        /**\n         * Determine the display level of the dialog.\n         *\n         * @type { ?LevelMode }\n         * @default LevelMode.OVERLAY\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelMode?: LevelMode;\n        /**\n         * The uniqueId of any node in the router or navigation page.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelUniqueId?: number;\n        /**\n         * Determine the immersive mode of the dialog.\n         *\n         * @type { ?ImmersiveMode }\n         * @default ImmersiveMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        immersiveMode?: ImmersiveMode;\n        /**\n         * Determine the display order of the dialog.\n         *\n         * @type { ?LevelOrder }\n         * @default The value returns by LevelOrder.clamp(0)\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        levelOrder?: LevelOrder;\n    }\n    /**\n     * Enum for state.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 20\n     */\n    enum CommonState {\n        /**\n         * Indicates it is uninitialized.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        UNINITIALIZED = 0,\n        /**\n         * Indicates it is initialized.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        INITIALIZED = 1,\n        /**\n         * Indicates it is appearig.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        APPEARING = 2,\n        /**\n         * Indicates it is appeared.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        APPEARED = 3,\n        /**\n         * Indicates it is disappearing.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        DISAPPEARING = 4,\n        /**\n         * Indicates it is disappeared.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        DISAPPEARED = 5\n    }\n    /**\n     * The class used to control common dialog.\n     *\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class CommonController {\n        /**\n         * The constructor.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        constructor();\n        /**\n         * Close the corresponding common dialog.\n         *\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        close(): void;\n        /**\n         * Get the state.\n         *\n         * @returns { CommonState } return the state.\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 20\n         */\n        getState(): CommonState;\n    }\n    /**\n     * The class used to control dialog.\n     *\n     * @extends CommonController\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    class DialogController extends CommonController {\n    }\n    /**\n     * Dialog base options\n     *\n     * @typedef BaseDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Dialog base options\n     *\n     * @typedef BaseDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface BaseDialogOptions {\n        /**\n         * Mask Region of dialog. The size can't exceed the main window.\n         *\n         * @type { ?Rectangle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Mask Region of dialog. The size can't exceed the main window.\n         *\n         * @type { ?Rectangle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        maskRect?: Rectangle;\n        /**\n         * Defines the dialog alignment of the screen.\n         *\n         * @type { ?DialogAlignment }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Defines the dialog alignment of the screen.\n         *\n         * @type { ?DialogAlignment }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        alignment?: DialogAlignment;\n        /**\n         * Defines the dialog offset.\n         *\n         * @type { ?Offset }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Defines the dialog offset.\n         *\n         * @type { ?Offset }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        offset?: Offset;\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        showInSubWindow?: boolean;\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isModal?: boolean;\n        /**\n         * Allows users to click the mask layer to exit.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        autoCancel?: boolean;\n        /**\n         * Transition parameters of opening/closing custom dialog.\n         *\n         * @type { ?TransitionEffect }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        transition?: TransitionEffect;\n        /**\n         * Dialog transition parameters of opening/closing custom dialog.\n         *\n         * @type { ?TransitionEffect }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        dialogTransition?: TransitionEffect;\n        /**\n         * Mask transition parameters of opening/closing custom dialog.\n         *\n         * @type { ?TransitionEffect }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        maskTransition?: TransitionEffect;\n        /**\n         * Defines custom dialog maskColor\n         *\n         * @type { ?ResourceColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        maskColor?: ResourceColor;\n        /**\n        * Callback function when the CustomDialog interactive dismiss.\n        *\n        * @type { ?Callback<DismissDialogAction> }\n        * @syscap SystemCapability.ArkUI.ArkUI.Full\n        * @crossplatform\n        * @atomicservice\n        * @since 12\n        */\n        onWillDismiss?: Callback<DismissDialogAction>;\n        /**\n         * Callback function when the dialog appears.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        onDidAppear?: () => void;\n        /**\n         * Callback function when the dialog disappears.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        onDidDisappear?: () => void;\n        /**\n         * Callback function before the dialog openAnimation starts.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        onWillAppear?: () => void;\n        /**\n         * Callback function before the dialog closeAnimation starts.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        onWillDisappear?: () => void;\n        /**\n         * Defines the customDialog's keyboard avoid mode\n         *\n         * @type { ?KeyboardAvoidMode }\n         * @default KeyboardAvoidMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        keyboardAvoidMode?: KeyboardAvoidMode;\n        /**\n         * Defines whether to respond to the hover mode.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        enableHoverMode?: boolean;\n        /**\n         * Defines the dialog's display area in hover mode.\n         *\n         * @type { ?HoverModeAreaType }\n         * @default HoverModeAreaType.BOTTOM_SCREEN\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 14\n         */\n        hoverModeArea?: HoverModeAreaType;\n        /**\n         * Defines the customDialog's background blur style with options\n         *\n         * @type { ?BackgroundBlurStyleOptions }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        backgroundBlurStyleOptions?: BackgroundBlurStyleOptions;\n        /**\n         * Defines the customDialog's background effect with options\n         *\n         * @type { ?BackgroundEffectOptions }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        backgroundEffect?: BackgroundEffectOptions;\n        /**\n         * Defines the distance between the customDialog and system keyboard.\n         *\n         * @type { ?LengthMetrics }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        keyboardAvoidDistance?: LengthMetrics;\n        /**\n         * Determine the display level of the dialog.\n         *\n         * @type { ?LevelMode }\n         * @default LevelMode.OVERLAY\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelMode?: LevelMode;\n        /**\n         * The uniqueId of any node in the router or navigation page.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelUniqueId?: number;\n        /**\n         * Determine the immersive mode of the dialog.\n         *\n         * @type { ?ImmersiveMode }\n         * @default ImmersiveMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        immersiveMode?: ImmersiveMode;\n        /**\n         * Determine the display order of the dialog.\n         *\n         * @type { ?LevelOrder }\n         * @default The value returns by LevelOrder.clamp(0)\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        levelOrder?: LevelOrder;\n        /**\n         * Specifies whether to get focus when the custom dialog is displayed.\n         *\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 19\n         */\n        focusable?: boolean;\n    }\n    /**\n     * Dialog's custom content options\n     *\n     * @extends BaseDialogOptions\n     * @interface CustomDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Dialog's custom content options\n     *\n     * @extends BaseDialogOptions\n     * @interface CustomDialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface CustomDialogOptions extends BaseDialogOptions {\n        /**\n         * Allow developer custom dialog's content.\n         *\n         * @type { CustomBuilder }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Allow developer custom dialog's content.\n         *\n         * @type { CustomBuilder }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        builder: CustomBuilder;\n        /**\n         * Defines the custom dialog's background color.\n         *\n         * @type { ?ResourceColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundColor?: ResourceColor;\n        /**\n         * Defines the custom dialog's corner radius.\n         *\n         * @type { ?(Dimension | BorderRadiuses) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        cornerRadius?: Dimension | BorderRadiuses;\n        /**\n         * Defines the custom dialog's width.\n         *\n         * @type { ?Dimension }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        width?: Dimension;\n        /**\n         * Defines the custom dialog's height.\n         *\n         * @type { ?Dimension }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        height?: Dimension;\n        /**\n         * Defines the custom dialog's border width.\n         *\n         * @type { ?(Dimension | EdgeWidths) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        borderWidth?: Dimension | EdgeWidths;\n        /**\n         * Defines the custom dialog's border color.\n         *\n         * @type { ?(ResourceColor | EdgeColors) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        borderColor?: ResourceColor | EdgeColors;\n        /**\n         * Defines the custom dialog's border style.\n         *\n         * @type { ?(BorderStyle | EdgeStyles) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        borderStyle?: BorderStyle | EdgeStyles;\n        /**\n         * Defines the custom dialog's shadow.\n         *\n         * @type { ?(ShadowOptions | ShadowStyle) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        shadow?: ShadowOptions | ShadowStyle;\n        /**\n         * Defines the customDialog's background blur Style\n         *\n         * @type { ?BlurStyle }\n         * @default BlurStyle.COMPONENT_ULTRA_THICK\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        backgroundBlurStyle?: BlurStyle;\n    }\n    /**\n     * Corner radius type of DialogOptions.\n     *\n     * @typedef { Dimension | BorderRadiuses } DialogOptionsCornerRadius\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    declare type DialogOptionsCornerRadius = Dimension | BorderRadiuses;\n    /**\n     * Border width type of DialogOptions.\n     *\n     * @typedef { Dimension | EdgeWidths } DialogOptionsBorderWidth\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    declare type DialogOptionsBorderWidth = Dimension | EdgeWidths;\n    /**\n     * Border color type of DialogOptions.\n     *\n     * @typedef { ResourceColor | EdgeColors } DialogOptionsBorderColor\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    declare type DialogOptionsBorderColor = ResourceColor | EdgeColors;\n    /**\n     * Border style type of DialogOptions.\n     *\n     * @typedef { BorderStyle | EdgeStyles } DialogOptionsBorderStyle\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    declare type DialogOptionsBorderStyle = BorderStyle | EdgeStyles;\n    /**\n     * Shadow type of DialogOptions.\n     *\n     * @typedef { ShadowOptions | ShadowStyle } DialogOptionsShadow\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    declare type DialogOptionsShadow = ShadowOptions | ShadowStyle;\n    /**\n     * Dialog options\n     *\n     * @extends BaseDialogOptions\n     * @typedef DialogOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    interface DialogOptions extends BaseDialogOptions {\n        /**\n         * Defines the dialog's background color.\n         *\n         * @type { ?ResourceColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        backgroundColor?: ResourceColor;\n        /**\n         * Defines the dialog's corner radius.\n         *\n         * @type { ?DialogOptionsCornerRadius }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        cornerRadius?: DialogOptionsCornerRadius;\n        /**\n         * Defines the dialog's width.\n         *\n         * @type { ?Dimension }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        width?: Dimension;\n        /**\n         * Defines the dialog's height.\n         *\n         * @type { ?Dimension }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        height?: Dimension;\n        /**\n         * Defines the dialog's border width.\n         *\n         * @type { ?DialogOptionsBorderWidth }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        borderWidth?: DialogOptionsBorderWidth;\n        /**\n         * Defines the dialog's border color.\n         *\n         * @type { ?DialogOptionsBorderColor }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        borderColor?: DialogOptionsBorderColor;\n        /**\n         * Defines the dialog's border style.\n         *\n         * @type { ?DialogOptionsBorderStyle }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        borderStyle?: DialogOptionsBorderStyle;\n        /**\n         * Defines the dialog's shadow.\n         *\n         * @type { ?DialogOptionsShadow }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        shadow?: DialogOptionsShadow;\n        /**\n         * Defines the dialog's background blur Style\n         *\n         * @type { ?BlurStyle }\n         * @default BlurStyle.COMPONENT_ULTRA_THICK\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        backgroundBlurStyle?: BlurStyle;\n    }\n    /**\n     * @typedef ActionMenuSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef ActionMenuSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef ActionMenuSuccessResponse\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ActionMenuSuccessResponse {\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Index of the selected button, starting from 0.\n         *\n         * @type { number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        index: number;\n    }\n    /**\n     * @typedef ActionMenuOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * @typedef ActionMenuOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * @typedef ActionMenuOptions\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface ActionMenuOptions {\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Title of the text to display.\n         *\n         * @type { ?(string | Resource) }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        title?: string | Resource;\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * One to six buttons are supported.\n         *\n         * @type { [Button, Button?, Button?, Button?, Button?, Button?] }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @since 9\n         */\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * One to six buttons are supported.\n         *\n         * @type { [Button, Button?, Button?, Button?, Button?, Button?] }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Array of buttons in the dialog box.\n         * The array structure is {text:'button', color: '#666666'}.\n         * One to six buttons are supported.\n         *\n         * @type { [Button, Button?, Button?, Button?, Button?, Button?] }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        buttons: [\n            Button,\n            Button?,\n            Button?,\n            Button?,\n            Button?,\n            Button?\n        ];\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether to display in the sub window.\n         *\n         * @type { ?boolean }\n         * @default false\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        showInSubWindow?: boolean;\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Whether it is a modal dialog\n         * @type { ?boolean }\n         * @default true\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        isModal?: boolean;\n        /**\n         * Determine the display level of the dialog.\n         *\n         * @type { ?LevelMode }\n         * @default LevelMode.OVERLAY\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelMode?: LevelMode;\n        /**\n         * The uniqueId of any node in the router or navigation page.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        levelUniqueId?: number;\n        /**\n         * Determine the immersive mode of the dialog.\n         *\n         * @type { ?ImmersiveMode }\n         * @default ImmersiveMode.DEFAULT\n         * @syscap SystemCapability.ArkUI.ArkUI.Full\n         * @crossplatform\n         * @atomicservice\n         * @since 15\n         */\n        immersiveMode?: ImmersiveMode;\n    }\n    /**\n     * Displays the notification text.\n     *\n     * @param { ShowToastOptions } options - Options.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Displays the notification text.\n     *\n     * @param { ShowToastOptions } options - Options.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Displays the notification text.\n     *\n     * @param { ShowToastOptions } options - Options.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#showToast\n     */\n    function showToast(options: ShowToastOptions): void;\n    /**\n     * Displays the notification text.\n     *\n     * @param { ShowToastOptions } options - Options.\n     * @returns { Promise<number> } return the toast id that will be used by closeToast.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    function openToast(options: ShowToastOptions): Promise<number>;\n    /**\n     * Close the notification text.\n     *\n     * @param { number } toastId - the toast id that returned by openToast.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @throws { BusinessError } 103401 - Cannot find the toast.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    function closeToast(toastId: number): void;\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @param { AsyncCallback<ShowDialogSuccessResponse> } callback - the callback of showDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @param { AsyncCallback<ShowDialogSuccessResponse> } callback - the callback of showDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @param { AsyncCallback<ShowDialogSuccessResponse> } callback - the callback of showDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#showDialog\n     */\n    function showDialog(options: ShowDialogOptions, callback: AsyncCallback<ShowDialogSuccessResponse>): void;\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @returns { Promise<ShowDialogSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @returns { Promise<ShowDialogSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ShowDialogOptions } options - Options.\n     * @returns { Promise<ShowDialogSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#showDialog\n     */\n    function showDialog(options: ShowDialogOptions): Promise<ShowDialogSuccessResponse>;\n    /**\n     * Open the custom dialog.\n     *\n     * @param { CustomDialogOptions } options - Options.\n     * @returns { Promise<number> } return the dialog id that will be used by closeCustomDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Open the custom dialog.\n     *\n     * @param { CustomDialogOptions } options - Options.\n     * @returns { Promise<number> } return the dialog id that will be used by closeCustomDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#openCustomDialog\n     */\n    function openCustomDialog(options: CustomDialogOptions): Promise<number>;\n    /**\n     * Close the custom dialog.\n     *\n     * @param { number } dialogId - the dialog id that returned by openCustomDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Close the custom dialog.\n     *\n     * @param { number } dialogId - the dialog id that returned by openCustomDialog.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#closeCustomDialog\n     */\n    function closeCustomDialog(dialogId: number): void;\n    /**\n     * Displays the menu.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @param { AsyncCallback<ActionMenuSuccessResponse> } callback - the callback of showActionMenu.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Displays the menu.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @param { AsyncCallback<ActionMenuSuccessResponse> } callback - the callback of showActionMenu.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Displays the menu.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @param { AsyncCallback<ActionMenuSuccessResponse> } callback - the callback of showActionMenu.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#showActionMenu\n     */\n    function showActionMenu(options: ActionMenuOptions, callback: AsyncCallback<ActionMenuSuccessResponse>): void;\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @returns { Promise<ActionMenuSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @since 9\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @returns { Promise<ActionMenuSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Displays the dialog box.\n     *\n     * @param { ActionMenuOptions } options - Options.\n     * @returns { Promise<ActionMenuSuccessResponse> } the promise returned by the function.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes:\n     * <br> 1. Mandatory parameters are left unspecified.\n     * <br> 2. Incorrect parameters types.\n     * <br> 3. Parameter verification failed.\n     * @throws { BusinessError } 100001 - Internal error.\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     * @deprecated since 18\n     * @useinstead ohos.arkui.UIContext.PromptAction#showActionMenu\n     */\n    function showActionMenu(options: ActionMenuOptions): Promise<ActionMenuSuccessResponse>;\n}\n/**\n * Component dialog dismiss action.\n *\n * @interface DismissDialogAction\n * @syscap SystemCapability.ArkUI.ArkUI.Full\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface DismissDialogAction {\n    /**\n     * Defines dialog dismiss function.\n     *\n     * @type { Callback<void> }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    dismiss: Callback<void>;\n    /**\n     * Dismiss reason type.\n     *\n     * @type { DismissReason }\n     * @syscap SystemCapability.ArkUI.ArkUI.Full\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    reason: DismissReason;\n}\nexport default promptAction;\n",
}
export default FILE;